<template>
  <div class="home">
    <h1>低代码平台</h1>
    <el-button type="primary" @click="goToDesigner">进入设计器</el-button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goToDesigner = () => {
  router.push('/designer')
}
</script>

<style scoped>
.home {
  padding: 20px;
  text-align: center;
}
</style>
